Telegram Group & Telegram Channel
​​DeepGit: refs

Блок 1

В крайней статье, мы смогли построить полноценное дерево коммитов.
Была единственная проблема в том, что нам надо было передать hash последного коммита.

В папке .git/refs хранятся файлы которые хранят в себе хеш коммита.
Чтобы создать референс в git нужно сделать следующее:
  echo "<hash>" > .git/refs/heads/<name> 

Ну или используя более безопасное решение:
 git update-ref refs/heads/<name> <hash>

Теперь вместо просмотра дерева через
git log <commit-hash>
мы можем использовать
git log master .

Базовый функционал ссылок это и есть наши git branches.
Для того что-бы "создать" ветку, достаточно просто связать ее название с крайним хешом коммита.
Через крайний хеш коммита уже можно воссоздать полностью дерево.



tg-me.com/developer_tools/252
Create:
Last Update:

​​DeepGit: refs

Блок 1

В крайней статье, мы смогли построить полноценное дерево коммитов.
Была единственная проблема в том, что нам надо было передать hash последного коммита.

В папке .git/refs хранятся файлы которые хранят в себе хеш коммита.
Чтобы создать референс в git нужно сделать следующее:

  echo "<hash>" > .git/refs/heads/<name> 

Ну или используя более безопасное решение:
 git update-ref refs/heads/<name> <hash>

Теперь вместо просмотра дерева через
git log <commit-hash>
мы можем использовать
git log master .

Базовый функционал ссылок это и есть наши git branches.
Для того что-бы "создать" ветку, достаточно просто связать ее название с крайним хешом коммита.
Через крайний хеш коммита уже можно воссоздать полностью дерево.

BY Dev Tools


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/developer_tools/252

View MORE
Open in Telegram


Dev Tools Telegram | DID YOU KNOW?

Date: |

Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.

How to Use Bitcoin?

n the U.S. people generally use Bitcoin as an alternative investment, helping diversify a portfolio apart from stocks and bonds. You can also use Bitcoin to make purchases, but the number of vendors that accept the cryptocurrency is still limited. Big companies that accept Bitcoin include Overstock, AT&T and Twitch. You may also find that some small local retailers or certain websites take Bitcoin, but you’ll have to do some digging. That said, PayPal has announced that it will enable cryptocurrency as a funding source for purchases this year, financing purchases by automatically converting crypto holdings to fiat currency for users. “They have 346 million users and they’re connected to 26 million merchants,” says Spencer Montgomery, founder of Uinta Crypto Consulting. “It’s huge.”

Dev Tools from vn


Telegram Dev Tools
FROM USA